package com.ctg.payroll2.dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.po.PbProvince;
import com.ctg.payroll2.dao.PbProvinceDAO;
import com.ctg.platform.orm.ibatis.IbatisEntityDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class PbProvinceDAOImpl extends
		IbatisEntityDao<PbProvince> implements
		PbProvinceDAO {

	public void delete(List data) throws SQLException {
		SqlMapClient sqlMapClient = this.getSqlMapClient();
		sqlMapClient.startBatch();
		for (int i = 0; i < data.size(); i++) {
			PbProvince o = (PbProvince) data.get(i);
			sqlMapClient.update("PbProvince.deleteByPrimaryKey", o);
		}
		sqlMapClient.executeBatch();
	}

}
